﻿

namespace MMS.Model
{
    public partial class SaleItem
    {
        public SaleItem ToPOCO(bool self)
        {
            return new SaleItem()
            {
                SIId = this.SIId,
                SITId = this.SITId,
                SIMId = this.SIMId,
                SIGId = this.SIGId,
                SIOriginalPay = this.SIOriginalPay,
                SIActualPay = this.SIActualPay,
                SITime = this.SITime,
                SIIsDel = this.SIIsDel,
                GoodsInfo=this.GoodsInfo.ToPOCO(),
                MemberInfo=this.MemberInfo.ToPOCO(),
                TradeInfo=this.TradeInfo.ToPOCO()
            };
        }
    }
}

